package mindshare;

import info.androidhive.slidingmenu.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Window;

public class Splash extends Activity {

	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		requestWindowFeature(Window.FEATURE_NO_TITLE);
		setContentView(R.layout.splash_layout);
		final Activity splashActivity = this;
		Thread splash = new Thread() {
			public void run() {
				try {
					int timer = 0;
					while (timer < 15000) {
						sleep(10);
						timer += 100;
					}
					Intent intencion = new Intent(splashActivity,
							Login.class);
					splashActivity.startActivity(intencion);

				} catch (InterruptedException e) {
					e.printStackTrace();
				} finally {
					finish();
				}
			}
		};
		splash.start();
	}

}